---
title: Combobox
description: Autocomplete input and command palette with a list of suggestions.
shadcnDocsLink: https://ui.shadcn.com/docs/components/combobox
---

<ComponentPreview component="combobox">
  ```tsx file=<rootDir>/src/examples/ui/combobox/index.tsx
  ```
</ComponentPreview>

## Installation

The Combobox is built using a composition of the `<Popover />` and the `<Command />` components.

See installation instructions for the <Link href="/docs/popover">Popover</Link> and the <Link href="/docs/command">Command</Link> components.

## Examples

### Default

<ComponentPreview component="combobox" example="default">
  ```tsx file=<rootDir>/src/examples/ui/combobox/index.tsx
  ```
</ComponentPreview>

### Users

<ComponentPreview component="combobox" example="users">
  ```tsx file=<rootDir>/src/examples/ui/combobox/users.tsx
  ```
</ComponentPreview>

### Timezones

<ComponentPreview component="combobox" example="timezones">
  ```tsx file=<rootDir>/src/examples/ui/combobox/timezones.tsx
  ```
</ComponentPreview>

### Multiselect

<ComponentPreview component="combobox" example="multiselect">
  ```tsx file=<rootDir>/src/examples/ui/combobox/multiselect.tsx
  ```
</ComponentPreview>